﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmployeePractice
{
    abstract class Employee
    {
        string name;
        public string Name
        {
            get { return name; }
            set
            {
                if (String.IsNullOrWhiteSpace(value))
                    throw new ArgumentNullException("Wrong Name!");
                name = value;
            }
        }

        public Employee(string employeeName)
        {
            Name = employeeName;
        }

        abstract public void CalculateSalary();
        
    }
}
